package org.test;

import java.util.List;

import org.noka.gson.Gson;
import org.noka.gson.reflect.TypeToken;

public class TD {

	public static void main(String[] args) {
		String dts ="[{\"name\":\"测试\",\"dt\":\"2016-09-12 14:23\"},{\"name\":\"测试\",\"dt\":\"2016-09-12 14:32\"}]";

		Gson gson = new Gson();
		List<TDitem> dtsd = gson.fromJson(dts, new TypeToken<List<TDitem>>(){}.getType());
		for(TDitem d : dtsd){
			System.out.println(d.getDt());
		}
	}

}
